package com.nsession.service;

import com.nsession.request.NSessionAddRequest;
import com.nsession.request.NSessionDeleteRequest;
import com.nsession.request.NSessionQueryRequest;
import com.nsession.request.NSessionUpdateRequest;
import com.nsession.response.NSessionInfo;
import com.nsession.response.NSessionResponse;

/**
 * Created by hp on 2016/3/29.
 */
public interface NSessionManageService {
    /**
     *
     * @param request
     * @return
     */
    public NSessionResponse<Boolean> add(NSessionAddRequest request);

    /**
     *
     * @param request
     * @return
     */
    public NSessionResponse<Boolean> delete(NSessionDeleteRequest request);


    public NSessionResponse<Boolean> update(NSessionUpdateRequest request);

    public NSessionResponse<NSessionInfo> query(NSessionQueryRequest request);
}
